package tools.lombok;

import lombok.*;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor(staticName = "of")
public class TestEntity {

    @Builder
    public TestEntity(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @NonNull
    private String name;
    private Integer age;
    private String nation;
    @Singular("hobby")
    private List<String> hobbies;

}
